package com.our.sys.project1.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

import com.our.sys.orm.hibernate.AuditableEntity;

@Entity
@Table(name = "B_AccountType")
public class AccountType extends AuditableEntity implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 571987232197019017L;

    @ViewField(header = "结算方式名称名称", width = 200, align = "left")
    private String name;
    @ViewField(header = "拼音助记符", width = 100, align = "left")
    private String py;
    @ViewField(header = "五笔助记符", width = 100, align = "left")
    private String wb;
    @ViewField(header = "状态", width = 50, align = "left")
    private String state;

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "B_AccountType")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPy() {
        return py;
    }

    public void setPy(String py) {
        this.py = py;
    }

    public String getWb() {
        return wb;
    }

    public void setWb(String wb) {
        this.wb = wb;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

}
